package com.lyl.serviceedu.cloudclient;

import com.lyl.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 远程调用 vod 服务的接口
 * 服务熔断
 */
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {
    @DeleteMapping(value = "/vod/video/{videoId}")
     R removeVideo(@PathVariable("videoId") String videoId);


     @DeleteMapping(value = "/vod/video/delete-batch")
     R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}